var json = {
    "payType": [
        {
            "key": "weixin",
            "value": "微信"
        },
        {
            "key": "alibaba",
            "value": "支付宝"
        }
    ],
    "orderStatus": [
        {
            "key": 0,
            "value": "待付款"
        },
        {
            "key": 1,
            "value": "待发货"
        },
        {
            "key": 2,
            "value": "已发货"
        },
        {
            "key": 3,
            "value": "交易成功"
        },
        {
            "key": 4,
            "value": "待评价"
        }
    ],
    "express": [
        {
            "value": "顺丰",
            "key": "sf"
        },
        {
            "value": "申通",
            "key": "sto"
        },
        {
            "value": "圆通",
            "key": "yt"
        },
        {
            "value": "韵达",
            "key": "yd"
        },
        {
            "value": "天天",
            "key": "tt"
        }
    ],
    "preferentialWay":[
        {
            "value": "现金卷",
            "key": "1"
        },
        {
            "value": "折扣卷",
            "key": "2"
        }
    ],
    "overlying":[
        {
            "value": "互斥",
            "key": "0"
        },
        {
            "value": "",
            "key": "1"
        }
    ],
    "type":[
        {
            "value": "普通类型",
            "key": "normal"
        },
        {
            "value": "注册类型",
            "key": "register"
        },
        {
            "value": "活动类型",
            "key": "campaign"
        }
    ],
    "dateType":[
        {
            "value": "区间性",
            "key": "interval"
        },
        {
            "value": "倒计时",
            "key": "countdown"
        }
    ]
}
function getkey(type, key) {
    var arra = json[type];
    for (var i = 0; i < arra.length; i++) {
        if (arra[i].key === key) {
            return arra[i].value;
        }
    }
    return "支付异常（" + key + "）";
}